<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <img v-bind:src="1<2?src:src2" alt="">
    <img :src="1>2?src:src2" alt="">
  </div>
  <script src="./vue.js"></script>
  <script>
    const vm = new Vue({
      el: "#app",
      data: {
        src:"https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png",
        src2:'https://himg.bdimg.com/sys/portraitn/item/d1846c697869616e676d616769638c27'
      }
    })
  </script>
</body>
</html>
